import { registerClass } from "../../../cfw/tools/class_decorator";
import BaseLogin from "../../core/login/BaseLogin";
import { ResultCallback, DataCallback, ResultState } from "../../SDKDefine";


@registerClass('DevLogin')
export class DevLogin extends BaseLogin {

    checkSession(callback: ResultCallback): void {
        callback(ResultState.YES)
    }

    login(account: string, func: DataCallback): void {
        func(ResultState.YES, {})
    }

    getUserInfo(withCredentials: string, lang: string, func: DataCallback): void {
        func(ResultState.YES, {})
    }

    logout(): void {

    }

    showUserAgreement(func: ResultCallback): void {
        func(ResultState.YES)
    }

}